<template>
  <div id="app">
    <Header></Header>
    <router-view></router-view>
    <!-- （不推荐）v-show 在登录和注册是隐藏的,根据组件身上的$route获取当前路由的信息，通过路由路径判断footer显示与隐藏-->
    <Footer></Footer>
  </div>
</template>

<script>
import Header from "./components/Header";
import Footer from "./components/Footer";

export default {
  name: "App",
  components: {
    Header,
    Footer,
  },
};
</script>

<style>
</style>
